package com.heima.config;
import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration//配置类,用于自动配置
@EnableFeignClients(basePackages = "com.heima.feigns")//开启feign客户端
public class HeimaFeignAutoConfiguration {

    //feign里面有日志的功能,帮助排错
    @Bean
    Logger.Level level(){
        //打印全部的feign日志,怎么让feign日志生效
        return Logger.Level.FULL;
    }
}